<div class="form-compile">
    <form class="layui-form" lay-filter="add-form">
        <div class="layui-form-item">
            <label class="layui-form-label required">用户名</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="userName" lay-verify="required" placeholder="请输入用户名">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">用户编码</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="userCode" lay-verify="required" placeholder="请输入用户编码" >
            </div>
        </div>
        
        <div class="layui-form-item">
            <label class="layui-form-label required">邮箱</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="email" lay-verify="required|email" placeholder="请输入邮箱" >
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">手机号</label> 
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="phone" lay-verify="required|phone" placeholder="请输入手机号" >
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">性别</label>
            <div class="layui-input-inline">
            	<select id="userAddSex" name="sex"  lay-verify="required"></select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">状态</label>
            <div class="layui-input-inline">
            	<select id="userAddUserStatus" name="userStatus"  lay-verify="required"></select>
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <textarea placeholder="请输入内容" class="layui-textarea" name="remark" ></textarea>
            </div>
        </div>
        <div class="layui-form-item form-finally">
            <button type="button" class="layui-btn" lay-submit="" lay-filter="user-add" id="userAddSave">保存</button>
            <button type="button" class="layui-btn" onclick="closePopup()">关闭</button>
        </div>
    </form>
</div>
<script>
$("#userAddSex").initSelectDict();
$("#userAddUserStatus").initSelectDict();
$("#userAddSave").formSubmit({
	url : ctx + "/sys/user/add"
});
</script>



